package com.study.spmongodb.book.wwj.char17;

/**
 * @author MI
 * @version 1.0
 * @date 2020/11/29 9:59
 */
public interface Lock {
    //获取显示锁，没有获得锁的线程将被阻塞
    void lock() throws InterruptedException;

    //释放获取的锁
    void unlock();
}
